#ifndef SERVICE_H
#define SERVICE_H
#include "department.h"
#include "employee.h"

#include <vector>

using namespace std;
namespace MAN
{
	class Service
	{
	public:
		
		virtual bool addDept(Department &dept) = 0;//增加部门 
		virtual bool deleteDept(int deptid) = 0;//删除部门 
		virtual vector<Department>& listDept(void) = 0;//列出部门 
		virtual bool addEmp(Employee emp,int depid) = 0;//增加员工
		virtual bool deleteEmp(int i,int empid) = 0;//删除员工 
		virtual bool modifyEmp(Employee emp,int i) = 0;//修改员工信息 
		virtual vector<Employee>& listEmp(int deptid) = 0;//列出部门员工 
		virtual vector<Employee>& listAllEmp(void) = 0;//列出所有员工 
		virtual ~Service(){}

	};
}
#endif //